package cn.bluech.example.cloud;

import cn.bluech.lib.http.HttpBuilder;

/**
 * Description:
 * Create by Codeant on 2019/3/14.
 */
public class CloudHttp {
    private static final String BASE_URL = "https://v2.myfcs.cc:14000/core/";

    private static CloudHttp instance;

    private CloudApi api;

    public static CloudHttp getInstance() {
        if(null==instance){
            synchronized (CloudHttp.class){
                if (null==instance)
                    instance = new CloudHttp();
            }
        }

        return instance;
    }

    private CloudHttp(){
        api = new HttpBuilder(BASE_URL).build(CloudApi.class);
    }

    public CloudApi getApi() {
        return api;
    }
}
